import request from '@/utils/request'

// 查询项目课题列表
export function listProjectTopic(query) {
  return request({
    url: '/system/projectTopic/list',
    method: 'get',
    params: query
  })
}

// 查询项目课题详细
export function getProjectTopic(id) {
  return request({
    url: '/system/projectTopic/' + id,
    method: 'get'
  })
}

// 新增项目课题
export function addProjectTopic(data) {
  return request({
    url: '/system/projectTopic',
    method: 'post',
    data: data
  })
}

// 修改项目课题
export function updateProjectTopic(data) {
  return request({
    url: '/system/projectTopic',
    method: 'put',
    data: data
  })
}

// 删除项目课题
export function delProjectTopic(id) {
  return request({
    url: '/system/projectTopic/' + id,
    method: 'delete'
  })
}
